package kr.kosta.mvc;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloSpringController
{
	@RequestMapping("helloSpring.do")//요청 받은 주소
	public String helloSpring(Model model)
	{
		System.out.println("helloSpring");
		
		model.addAttribute("name", "skdocx");//리턴할 값
		
		return "helloSpringResult";//리턴할 주소
	}
}
